package com.sgb.kjwl.model.entity;

import android.text.TextUtils;

import com.google.gson.annotations.SerializedName;

public class TeamPriceItemEntity {

    /**
     * teamName : 专业土方挖掘施工队
     * no : 202006111930838
     * principle :
     * secondCategoryNo :
     * thirdCategoryNo :
     * equipment :
     * firstCategoryNo : 20190313457612
     * priceStatus : 1
     * thirdCategoryName :
     * firstCategoryName : 房建工程
     * teamNo : 202006111165190
     * unit : 人头计算
     * material :
     * price : 50000
     * secondCategoryName :
     * typeWork :
     * id : 474
     * priceWithMaterial :
     */

    @SerializedName("teamName")
    private String teamName;
    @SerializedName("no")
    private String no;
    @SerializedName("principle")
    private String principle;
    @SerializedName("secondCategoryNo")
    private String secondCategoryNo;
    @SerializedName("thirdCategoryNo")
    private String thirdCategoryNo;
    @SerializedName("equipment")
    private String equipment;
    @SerializedName("firstCategoryNo")
    private String firstCategoryNo;
    @SerializedName("priceStatus")
    private String priceStatus;
    @SerializedName("thirdCategoryName")
    private String thirdCategoryName;
    @SerializedName("firstCategoryName")
    private String firstCategoryName;
    @SerializedName("teamNo")
    private String teamNo;
    @SerializedName("unit")
    private String unit;
    @SerializedName("material")
    private String material;
    @SerializedName("price")
    private String price;
    @SerializedName("secondCategoryName")
    private String secondCategoryName;
    @SerializedName("typeWork")
    private String typeWork;
    @SerializedName("id")
    private String id;
    @SerializedName("priceWithMaterial")
    private String priceWithMaterial;

    private String companyId; // 企业店铺No
    private String userNo; // 个人店铺no
    /**
     * address : 北京
     * hasMaterial : 2
     * categoryName : 房建工程
     * companyNo : 202007285802270
     * createTime : 1604388942655
     */

    private String address;
    private int hasMaterial;
    private String categoryName;
    private String companyNo;
    private String category;
    private long createTime;
    private String typeWorkName;
    private String location;

    public String getLocation() {
        return location;
    }

    public void setLocation(String location) {
        this.location = location;
    }

    public String getCategory() {
        return category;
    }

    public void setCategory(String category) {
        this.category = category;
    }

    public String getTypeWorkName() {
        return typeWorkName;
    }

    public void setTypeWorkName(String typeWorkName) {
        this.typeWorkName = typeWorkName;
    }

    public boolean isCompany() { //企业类型0:个人1:企业
        return TextUtils.isEmpty(companyId);
    }

    public String getUserNo() {
        return userNo;
    }

    public void setUserNo(String userNo) {
        this.userNo = userNo;
    }

    public String getCompanyId() {
        return companyId;
    }

    public void setCompanyId(String companyId) {
        this.companyId = companyId;
    }

    public String getTeamName() {
        return teamName;
    }

    public void setTeamName(String teamName) {
        this.teamName = teamName;
    }

    public String getNo() {
        return no;
    }

    public void setNo(String no) {
        this.no = no;
    }

    public String getPrinciple() {
        return principle;
    }

    public void setPrinciple(String principle) {
        this.principle = principle;
    }

    public String getSecondCategoryNo() {
        return secondCategoryNo;
    }

    public void setSecondCategoryNo(String secondCategoryNo) {
        this.secondCategoryNo = secondCategoryNo;
    }

    public String getThirdCategoryNo() {
        return thirdCategoryNo;
    }

    public void setThirdCategoryNo(String thirdCategoryNo) {
        this.thirdCategoryNo = thirdCategoryNo;
    }

    public String getEquipment() {
        return equipment;
    }

    public void setEquipment(String equipment) {
        this.equipment = equipment;
    }

    public String getFirstCategoryNo() {
        return firstCategoryNo;
    }

    public void setFirstCategoryNo(String firstCategoryNo) {
        this.firstCategoryNo = firstCategoryNo;
    }

    public String getPriceStatus() {
        return priceStatus;
    }

    public void setPriceStatus(String priceStatus) {
        this.priceStatus = priceStatus;
    }

    public String getThirdCategoryName() {
        return thirdCategoryName;
    }

    public void setThirdCategoryName(String thirdCategoryName) {
        this.thirdCategoryName = thirdCategoryName;
    }

    public String getFirstCategoryName() {
        return firstCategoryName;
    }

    public void setFirstCategoryName(String firstCategoryName) {
        this.firstCategoryName = firstCategoryName;
    }

    public String getTeamNo() {
        return teamNo;
    }

    public void setTeamNo(String teamNo) {
        this.teamNo = teamNo;
    }

    public String getUnit() {
        return unit;
    }

    public void setUnit(String unit) {
        this.unit = unit;
    }

    public String getMaterial() {
        return material;
    }

    public void setMaterial(String material) {
        this.material = material;
    }

    public String getPrice() {
        return price;
    }

    public void setPrice(String price) {
        this.price = price;
    }

    public String getSecondCategoryName() {
        return secondCategoryName;
    }

    public void setSecondCategoryName(String secondCategoryName) {
        this.secondCategoryName = secondCategoryName;
    }

    public String getTypeWork() {
        return typeWork;
    }

    public void setTypeWork(String typeWork) {
        this.typeWork = typeWork;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getPriceWithMaterial() {
        return priceWithMaterial;
    }

    public void setPriceWithMaterial(String priceWithMaterial) {
        this.priceWithMaterial = priceWithMaterial;
    }


    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public int getHasMaterial() {
        return hasMaterial;
    }

    public void setHasMaterial(int hasMaterial) {
        this.hasMaterial = hasMaterial;
    }

    public String getCategoryName() {
        return categoryName;
    }

    public void setCategoryName(String categoryName) {
        this.categoryName = categoryName;
    }

    public String getCompanyNo() {
        return companyNo;
    }

    public void setCompanyNo(String companyNo) {
        this.companyNo = companyNo;
    }

    public long getCreateTime() {
        return createTime;
    }

    public void setCreateTime(long createTime) {
        this.createTime = createTime;
    }

    public String getEndingCategory(String s){
        String[] split = s.split("-");
        return split[split.length-1];
    }
}
